package com.qianyu.project.service;

import com.qianyu.project.entity.MaterialUseDetail;
import com.qianyu.project.entity.MaterialUsePlan;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 材料需用计划 服务类
 * </p>
 *
 * @author gs
 * @since 2021-01-30
 */
public interface IMaterialUsePlanService extends IService<MaterialUsePlan> {

    /**
     * 添加
     * description:  <br/>
     * author: lyz   <br/>
     * date: 2021/2/5 <br/>
     * params:  <br/>
     * return:
     */
    Integer saveMaterialUsePlan(MaterialUsePlan materialUsePlan, List<MaterialUseDetail> detailList);

    List getUsePlanList(Map<String, String> map);

    MaterialUsePlan getPlanById(String id);
}
